﻿using UnityEngine;
using System.Collections;

public class ParticipantCell : MonoBehaviour
{
	[HideInInspector] public int indexPath;

	public UILabel nameLabel;
	public UILabel damageLabel;
	public UILabel raidCountLabel;

	public GameObject requestFriendButtonObject;
	public GameObject writeMessageButtonObject;

	public void OnClick_RequestFriend()
	{
		Debug.Log("OnClick_RequestFriend");
		this.GetComponent<UIDragScrollView>().scrollView.transform.parent.GetComponent<Popup_SuppressList>().RequestFriendProcess(indexPath);
	}

	public void OnClick_WriteMessage()
	{
		Debug.Log("OnClick_WriteMessage");
		this.GetComponent<UIDragScrollView>().scrollView.transform.parent.GetComponent<Popup_SuppressList>().WriteMessageProcess(indexPath);
	}
}
